import {Column, Entity, PrimaryGeneratedColumn} from "typeorm";

@Entity('fd_survey_user',{
    comment: '问卷用户表',
})
export class SurveyUserEntity {
    @PrimaryGeneratedColumn({ type: 'int', name: 'id', comment: '主键ID' })
    public id: number;

    @Column({ type: 'int', name: 'sur_id', default:null, comment: '问卷ID' })
    public surId: number;

    @Column({ type: 'int', name: 'user_id', default:null, comment: '学员ID' })
    public userId: number;

    @Column({ type: 'int', name: 'score', default:0, comment: '总得分' })
    public score: number;

    @Column({ type: 'int', name: 'joined', default:0, comment: '是否参加问卷' })
    public joined: number;

}
